word problems in profit and loss